Encrypted communication for selectively delivering a message to multiple decrypting devices

ABSTRACT

Reduces message length of encrypted message to be transmitted selectively to plurality of decrypting devices. An encrypting device includes a generating unit for generating node associating information configured to associate respective terminal nodes in a tree structure with each decrypting device in relation to a group of decrypting devices enabled for decryption, a extracting unit for extracting a decryption enabled node containing decrypting devices in descendant terminal nodes and not containing a decrypting device with decryption disabled in any of the descendant terminal nodes, and a unit for encrypting the message by use of a node encryption key for the decryption enabled node. Decrypting devices include specifying unit for specifying terminal node associated with decrypting device based on node associating information, and a decrypting unit for decrypting encrypted message using a node decryption key for any decryption enabled nodes ranging from terminal node to root node thereof.

FIELD OF THE INVENTION

The present invention relates to an encrypted communication system, an encrypting device, a decrypting device, an encrypting method, a decrypting method, an encrypting program product, and a decrypting program product. More specifically, the present invention relates to an encrypted communication system for selectively delivering a message to multiple decrypting devices.

BACKGROUND

In recent years, distribution of digital contents is becoming active along with diffusion of broadband communication networks, and protection of such contents is an important issue.

The following documents are considered:

-   -   [Patent Document 1] Japanese Unexamined Patent Publication No.         2003-289297     -   [Patent Document 2] Japanese Unexamined Patent Publication No.         2003-273858     -   [Patent Document 3] Japanese Unexamined Patent Publication No.         2002-123429     -   [Patent Document 4] Japanese Unexamined Patent Publication No.         11(1999)-187013     -   [Non-Patent Document 1] A. Fiat and M. Naor, “Broadcast         Encryption,” Crypto '93, Lecture Notes in Computer Science         (LNCS) 773, pp. 480-491, 1994     -   [Non-Patent Document 2] D. Naor, M. Naor, and J. Lotspiech,         “Revocation and Tracing Scheme for Stateless Receivers,”         Advances in Cryptology—Crypto 2001, Lecture Notes in Computer         Science (LNCS) 2139, Springer, pp. 41-62, 2001     -   [Non-Patent Document 3] Matsuzaki et al, “Tree Structure Key         Management Method Supporting Multiple Systems,” SCIS '02, pp.         721-726, 2002     -   [Non-Patent Document 4] Okuaki et al, “Proposal of a Hybrid         System Combining Complete Subtree Method and Subset Difference         Method,” SCIS '03, pp. 221-226, 2003     -   [Non-Patent Document 5] Kim et al., “Broadcast Encryption         Schemes Suitable for Half-Rate Revocation,” SCIS '03, pp.         305-309, 2003     -   [Non-Patent Document 6] Asano, “Efficient Broadcast Encryption         Method based on a Key Tree Structure,” SCIS '03, pp. 209-214,         2003     -   [Non-Patent Document 7] Ogata et al., “Efficient Tree Based Key         Management based on RSA function,” SCIS '04, pp. 195-199, 2004     -   [Non-Patent Document 8] Kikuchi et al., “Modified Subset         Difference Method with Reduced Strage of Secret Key at Users,”         SCIS '04, pp. 83-87, 2004     -   [Non-Patent Document 9] Nojima et al., “Tree Based Key         Management Using Trapdoor On-Way Functions,” SCIS '03, pp.         131-136, 2003

As one of techniques for protecting the contents, broadcast encryption (hereinafter abbreviated as BE) which is an encryption method allowing only a receiver selected by a transmitter to decrypt encrypted information is applied to CPRM/CPPM and the like, for example. (See Non-Patent Document 1).

When individual keys are managed for respective decrypting devices in the BE method, the number of keys to be managed will be immense. Moreover, the information encrypted for each decrypting device needs to be included in an encrypted message. Accordingly, a message length of the encrypted message subject to broadcast is increased. To solve such a problem, there is a disclosed method of allocating keys by use of a tree structure. (See Patent Documents 1 to 4 and Non-Patent Documents 2 to 9).

Non-Patent Document 2 discloses typical BE methods applying the tree structure, namely, a complete subtree (hereinafter abbreviated as CS) method and a subset difference (hereinafter abbreviated as SD) method.

In the CS method, each decrypting device is allocated to a leaf (a terminal node) of a complete binary tree, and node keys for the respective nodes ranging from a terminal node to a root node are stored in each device. An encrypting device selects a set of complete subtrees S_(i), which does not include a decrypting device with the decrypting of a message disabled in a terminal node thereof but includes only decrypting devices enabled to decrypt the message in the terminal nodes. Thereafter, the encrypting device encrypts a message body by use of a title key, then encrypts the title key with one or a plurality of node keys of one or a plurality of nodes respectively located on a vertex or vertices of one or a plurality of selected complete subtrees S_(i), and then broadcasts the encrypted message including the foregoing information. Upon receipt of the encrypted message, the qualified decrypting device is able to decrypt the title key, which is encrypted with the node key for any of nodes from the terminal node to the root node corresponding to the decrypting device, and thereby to decrypt the message by use of the decrypted title key.

In the CS method, assuming that the number of nodes is N and that the number of decrypting devices with the decrypting of the message disabled (the number of decrypting devices to be disabled) is r, each decrypting device will have a key defined as log N+1. Here, the base of log is k in the case of using a k-th order tree, which is equal to 2 in the case of using a binary tree (hereinafter similarly applicable), for example. Meanwhile, a message length (the number of node keys used for encrypting the title key) will be equal to r*log(N/r) in the worst case.

In the SD method, if one of terminal nodes in a complete subtree having the node as the vertex represents a decrypting device with the decrypting of a message disabled, then a node key is further provided, associated with each of the nodes, for allowing decrypting device in the complete subtree other than the disabled decrypting device to perform decryption.

In the SD method, each decrypting device will have a key defined as ((log N)²+log N)/2+1, and the message length will be equal to 2r−1 in the worst case and 1.25r on average.

Non-Patent Document 4 discloses a method combining the CS method and the SD method. In this method, when N=2¹⁵, the message length becomes larger than the message length in the SD method. According to Non-Patent Document 5, the message length is almost equal to N/3 when the number of disabled decrypting devices is about half of the total decrypting devices. Non-Patent Document 3 discloses a method of managing a tree structure supporting a plurality of systems by encrypting and publicizing node keys for the tree structure. In this method, an encrypting device publicizes the node keys in the number proportional to the number of nodes.

In the CS method, the number of node keys used for encrypting the title key will increase along with an increase in the number of decrypting devices with the decrypting of the message disabled. As a result, the message length increases. Meanwhile, in the SD method, although it is possible to reduce the message length as compared to the CS method, the number of node keys to be stored by each decrypting device will increase on the contrary. To enhance efficiency of the BE, there is a demand for a method which is capable of significantly reducing the message length while not increasing the number of node keys to be stored by each decrypting device in comparison with the CS method, the SD method, and other conventional techniques.

SUMMARY OF THE INVENTION

Accordingly, it is an aspect of the present invention to provide an encrypted communication system, an encrypting device, a decrypting device, an encrypting method, a decrypting method, an encrypting program product, and a decrypting program product, which are capable of solving the foregoing problems. In a first aspect of the present invention, an encrypted communication system having an encrypting device for encrypting a message and a plurality of decrypting devices for decrypting the encrypted message are provided.

An example of a encrypting device includes: a node associating information generating unit for generating node associating information configured to associate a plurality of terminal nodes in the first tree structure connecting a plurality of nodes respectively with the plurality of decrypting devices in relation to a group of the decrypting devices enabled to decrypt the encrypted message; a node extracting unit for extracting the first decryption enabled node, in which aforementioned decryption devices enabled to decrypt the encrypted message are associated with the descendant first terminal nodes and aforementioned decryption devices with the decrypting of the encrypted message disabled are not associated with any of the descendant first terminal nodes, in the first tree structure with which the plurality of decrypting devices are associated by the node associating information; and a message encrypting unit for encrypting the message by use of the first node encryption key associated with the first decryption enabled node.

A second aspect of the present invention provides an encrypted communication system having an encrypting device for encrypting a message and a plurality of decrypting devices for decrypting the encrypted message, in which a public key and secret key are predefined in relation to each of the decrypting devices.

A third aspect of the present invention provides still another encrypted communication system having an encrypting device for encrypting a message and a plurality of decrypting devices for decrypting the encrypted message. Thus, according to the present invention, it is possible to reduce a message length of an encrypted message when selectively transmitting the message to a plurality of decrypting devices.

BRIEF DESCRIPTION OF THE DRAWINGS

For a more complete understanding of the present invention and the advantages thereof, reference is now made to the following description taken in conjunction with the accompanying drawings.

FIG. 1 is a view showing a configuration of an encrypted communication system 10 according to an embodiment of the present invention.

FIG. 2 is a view showing a tree structure for managing keys by the encrypted communication system 10 according to the embodiment of the present invention.

FIG. 3 is a view showing a configuration of an encrypting device 100 according to the embodiment of the present invention.

FIG. 4 is a view showing an operational flow of the encrypting device 100 according to the embodiment of the present invention.

FIG. 5 is a view showing a configuration of a decrypting device 110 according to the embodiment of the present invention.

FIG. 6 is a view showing an operational flow of the decrypting device 110 according to the embodiment of the present invention.

FIG. 7 is a view showing a configuration of the encrypting device 100 according to a modified example of the embodiment of the present invention.

FIG. 8 is a view showing an operational flow of the encrypting device 100 according to the modified example of the embodiment of the present invention.

FIG. 9 is a view showing a configuration of the decrypting device 110 according to the modified example of the embodiment of the present invention.

FIG. 10 is a view showing an operational flow of the decrypting device 110 according to the modified example of the embodiment of the present invention.

FIG. 11 is a view showing a tree structure for managing keys by the encrypted communication system 10 according to the modified example of the embodiment of the present invention.

FIG. 12 is a graph of comparison between the encrypted communication system 10 according to the embodiment of the present invention and conventional methods.

FIG. 13 is a graph of comparison between the encrypted communication system 10 according to the modified example of the embodiment of the present invention and the conventional methods.

FIG. 14 is a view showing an example of a hardware configuration of a computer 1900 according to the embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

The present invention provides encrypted communication systems, encrypting devices, decrypting devices, encrypting and decrypting methods, encrypting and decrypting program products, which are capable of solving the foregoing problems. These are attained by combinations of characteristics as set forth in the independent claims defined in the scope of claims. The dependent claims herein will define more advantageous examples of the present invention.

In an example embodiment, the present invention provides an encrypted communication system having an encrypting device for encrypting a message and a plurality of decrypting devices for decrypting the encrypted message. Here, the encrypting device includes: a node associating information generating unit for generating node associating information configured to associate a plurality of terminal nodes in the first tree structure connecting a plurality of nodes respectively with the plurality of decrypting devices in relation to a group of the decrypting devices enabled to decrypt the encrypted message; a node extracting unit for extracting the first decryption enabled node, in which aforementioned decryption devices enabled to decrypt the encrypted message are associated with the descendant first terminal nodes and aforementioned decryption devices with the decrypting of the encrypted message disabled are not associated with any of the descendant first terminal nodes, in the first tree structure with which the plurality of decrypting devices are associated by the node associating information; and a message encrypting unit for encrypting the message by use of the first node encryption key associated with the first decryption enabled node.

Meanwhile, in example embodiments each of the decrypting devices includes: a node associating information acquiring unit for acquiring the node associating information generated in relation to the group of the decrypting devices enabled to decrypt the encrypted message; a terminal node specifying unit for specifying the first terminal node associated with the decrypting device based on the node associating information; and a message decrypting unit for decrypting the encrypted message by use of the first node decryption key corresponding to the first decryption enabled node when any of the nodes ranging from the first terminal node associated with the decrypting device to the root node of the first tree structure is the first decryption enabled node. The first aspect of the present invention also provides an encrypting device, a decrypting device, an encrypting method, a decrypting method, an encrypting program product, a decrypting program product, and a recording medium related to the the-described encrypted communication system.

In another example embodiment, the present invention provides another encrypted communication system having an encrypting device for encrypting a message and a plurality of decrypting devices for decrypting the encrypted message, in which a public key and secret key are predefined in relation to each of the decrypting devices. Here, the encrypting device includes a message encrypting unit for encrypting the message by use of a group encryption key based on the product of the secret keys corresponding to the respective decrypting devices which do not belong to a group of the decrypting devices, among the plurality of decrypting devices, enabled to decrypt the encrypted message. Meanwhile, each of the decrypting devices includes: a device decryption key storing unit for storing a device decryption key of the decrypting device determined based on the product of the secret keys corresponding to the decrypting devices, among the plurality of decrypting devices, other than the decrypting device; a group decryption key generating unit for generating a group decryption key for the encrypted message based on the product of the secret keys corresponding to the decrypting devices not belonging to a group of the decrypting devices enabled to decrypt the encrypted message, the group decryption key being generated based on the public keys corresponding to the respective decrypting devices, other than the relevant decrypting device, belonging to the group of the decrypting devices enabled to decrypt the encrypted message and on the device decryption key of the relevant decrypting device; and a message decrypting unit for decrypting the encrypted message by use of the group decryption key. The second aspect of the present invention also provides an encrypting device, a decrypting device, an encrypting method, a decrypting method, an encrypting program, a decrypting program, and a recording medium related to the the-described encrypted communication system.

In an example embodiment, the present invention provides still another encrypted communication system having an encrypting device for encrypting a message and a plurality of decrypting devices for decrypting the encrypted message. Here, the encrypting device includes: a tree structure storing unit for storing a plurality of tree structures with a plurality of nodes connected together while defining each of the plurality of decrypting devices as a terminal node; a tree structure selecting unit for selecting one of the tree structures based on a set of the decrypting devices enabled to decrypt the encrypted message; a node extracting unit for extracting a set of decryption enabled nodes in terms of the selected tree structure, each of the decryption enabled nodes not containing the decrypting device with the decrypting of the encrypted message disabled in descendant terminal nodes but containing the decrypting device enabled to decrypt the encrypted message in a descendant terminal node of any of the nodes; and a message encrypting unit for outputting a plurality of encrypted messages in which the message is encrypted by use of respective node encryption keys associated with respective decryption enabled nodes belonging to the selected set of the decryption enabled nodes. Meanwhile, each of the decrypting devices includes: a node specifying unit for specifying the selected decryption enabled node in the tree structure as a pool for selecting the set of nodes among nodes located on a path ranging from the terminal node corresponding to the decrypting device to the root node; a node decryption key acquiring unit for acquiring a node decryption key associated with the decryption enabled node specified by the node specifying unit in the tree structure as a pool for selecting the set of decryption enabled nodes; and a message decrypting unit for decrypting the encrypted message encrypted by the node encryption key associated with the decryption enabled node specified by the node specifying unit while using the acquired node decryption key. The third aspect of the present invention also provides an encrypting device, a decrypting device, an encrypting method, a decrypting method, an encrypting program, a decrypting program, and a recording medium related to the the-described encrypted communication system.

Note that the above-described outlines of the invention do not enumerate all necessary features of the present invention, and that subcombinations of these groups of features may also constitute the present invention. It should be realized that according to the present invention, it is possible to reduce a message length of an encrypted message when selectively transmitting the message to a plurality of decrypting devices.

Now, the present invention will be described by way of advantageous embodiments. However, it is to be understood that the following embodiments do not limit the invention as defined in the appended claims, and that all the combinations of the features as explained in the embodiment are not always essential to constitute the solution of the invention.

FIG. 1 shows a configuration of an encrypted communication system 10 according to an embodiment of the present invention. The encrypted communication system 10 includes an encrypting device 100, a plurality of decrypting devices 110, and a network 120. The encrypted communication system 10 realizes broadcast encryption which is capable of reducing a message length of an encrypted message to be transmitted from the encrypting device 100 to decrypting devices 110 while suppressing the number of keys to be stored in the respective decrypting devices 110.

The encrypting device 100 encrypts a message so as to allow only a predefined decrypting device 110 out of all the decrypting devices 110 to perform decryption, and thereby outputs an encrypted message. Each of the decrypting devices 110 decrypts the encrypted message when decryption of the encrypted message is enabled. Here, the decrypting device 110 is an information processing device such as a personal computer (PC), a personal digital assistant (PDA), a cellular telephone or a home information appliance. Moreover, two or more decrypting devices 110 may be realized by a single computer. Specifically, such a computer may function as the first decrypting device 110 when the first user uses the computer and as the second decrypting device 110 when the second user uses the computer, for example. The network 120 relays communication between the encrypting device 100 and the decrypting devices 110.

In the above-described configuration, the message may be a digital content, for example, which may be encrypted by the encrypting device 100 and transmitted to decrypting devices 110. Instead, the message may be information recorded in a recording medium such as a CD or a DVD. In this case, the message is encrypted by the encrypting device 100 and recorded in the recording medium, and will be read out and decrypted by the decrypting device enabled to perform decryption.

FIG. 2 shows a tree structure for key management by the encrypted communication system 10 according to this embodiment. The encrypted communication system 10 according to this embodiment manages decryption keys to be used in decryption of the encrypted message by use of a tree 200 shown in FIG. 2.

The tree 200 is a tree structure formed by defining each of the plurality of decrypting devices 110 as each terminal node (a leaf) and by connecting a plurality of nodes. To be more precise, the tree 200 is formed by connecting one or more child nodes to one parent node starting from the root node v_(l), and each decrypting device 110 is associated with each terminal node which does not have a child node. This embodiment will be described based on an example where the tree 200 is a binary tree. However, the tree may adopt any other tree structure. In the following, description will be made on an example where the total number of the decrypting device 110 is equal to N (N is a power of two number).

The tree 200 includes a higher-level tree 210 and a plurality of lower-level subtrees 220. The higher-level tree 210 has a tree structure in which the root node of the tree 200 is defined as the root node and respective root nodes of the plurality of lower-level subtrees 220 are connected as a plurality of second terminal nodes. The higher-level tree 210 in this embodiment includes nodes in a higher-level portion starting from the first level to an h-th level (1≦h≦log N−1) of the tree 200, and codes from v_(l) to v_(w−1) are allocated to the respective nodes while giving priority to the width (on the condition that w=2^(h)). Moreover, mutually different node keys L_(j) (j=1, 2, . . . , w−1) are allocated to the respective nodes. These node keys are used as encryption keys and as decryption keys for a message. Alternatively, it is also possible to allocate asymmetric sets of encryption keys and decryption keys to the respective nodes.

Each of the lower-level subtrees 220 has a tree structure in which the plurality of decrypting devices 110 associated with the lower-level subtrees 220 are respectively defined as first terminal nodes and the plurality of nodes are connected. Each of the plurality of lower-level subtrees 220 (which will be indicated as S_(i) (i=1, 2, . . . , w/2)) applies the v_(w/2−1+i), which is a terminal node of the higher-level tree 210, as the root node. Nodes from v_(i,l) to v_(i,2y−1) are allocated to the respective nodes of an i-th (i=1, 2, . . . , w/2) lower-level subtree 220 while giving priority to the width (on the condition that y=2N/w). Moreover, mutually different node keys L_(i,l) (l=1, 2, . . . , 2y−1) are allocated to the respective nodes. These node keys are used as encryption keys and as decryption keys for a message. Meanwhile, the respective decrypting devices 110 (which will be indicated as u_(i,j) (j=1, 2, . . . , y)), which are associated with the lower-level subtrees 220, are associated with respective terminal nodes v_(i,y), . . . ,v_(i,2y−1) of the lower-level subtrees 220.

The encrypting device 100 presets w/2 pieces of groups of prime numbers (p_(i), q_(i)), which are sufficiently large and mutually different, and thereby prepares n_(i)=p_(i)q_(i). The n_(i) factor is used as the modulus in an encryption system of the lower-level subtree 220 of S_(i). Moreover, a public key e_(j) and a secret key d_(i,j) are predefined in relation to each of the decrypting devices 110. Here, the public keys e_(j) (j=1, . . . , y) are y pieces of mutually different prime numbers, which are equal to or below min_(i)(n_(i)). Meanwhile, N groups of (e_(j), d_(i,j)) (i=1, 2, . . . , w/2, j=1, 2, . . . , y) constitute groups of public keys and encryption keys in an RSA encryption system applying the n_(i) factor as the modulus.

Then, the encrypting device 100 publicizes all e_(j) factors to the respective decrypting devices 110 and secretly retains the d_(i,j) factors. Here, each of the decrypting devices 110 may store all the e_(j) factors in advance or retain a program for generating the e_(j) factors. Moreover, the n_(i) factor corresponding to the lower-level subtree 220 connected to a decrypting device 110 is preset in the decrypting device 110.

The decrypting device 110 associated with the lower-level subtree 220 indicated by S_(i) secretly retains node keys for h pieces of nodes on a path from the root node of the lower-level subtree 220 to the root node of the tree 200 and device keys (device decryption keys) I_(i,j) of the decrypting device 110 as defined in the following formula (1): $\begin{matrix} \left\lbrack {{Formula}\quad 1} \right\rbrack & \quad \\ {{I_{i,j} = {A^{{{Ti}/{di}},j}{mod}\quad n_{i}}}{{provided}\quad{that}}{{A_{i} = {L_{{w/2} + i - 1}\left( {\in Z_{n_{i}}^{*}} \right)}},{T_{i} = {\prod\limits_{k = 1}^{y}d_{i,k}}}}} & (1) \end{matrix}$

These device keys I_(i,j) are also used as the node keys for the terminal nodes of the lower-level subtree 220.

In the above-described configuration, each of the decrypting devices 110 can use node decryption keys corresponding to the respective nodes ranging from the terminal node of the lower-level subtree 220 associated with the decrypting device 110 to the root node of the tree 200. To be more precise, the decrypting device 110 stores the node decryption keys corresponding to the nodes in the higher-level tree 210 on this path in advance. Meanwhile, the decrypting device 110 generates the node decryption keys corresponding to the nodes in the lower-level subtree 220 on this path by use of the above-described device keys (the device decryption keys). In the meantime, each of the decrypting devices 110 cannot use the node decryption keys corresponding to other nodes.

The encrypting device 100 selects a node among the respective nodes in the tree 200, which includes the decrypting device 110 enabled to decrypt an encrypted message in descendant terminal nodes and does not include the decrypting device 110 with the decrypting thereof disabled in the descendant terminal nodes, as a decryption enabled node. Then, the encrypting device 100 encrypts a message by use of a node encryption key corresponding to the decryption enabled node. In this way, the encrypting device 100 can generate the encrypted message which can be decrypted only by the decrypting device 110 corresponding to the descendant terminal node of the decryption enabled node. Here, the encrypting device 100 may select multiple decryption enabled nodes and transmit a plurality of encrypted messages respectively encrypted by use of the node encryption keys corresponding to these decryption enabled nodes to the respective decrypting devices 110. In this case, each of the decrypting devices 110 can decrypt the encrypted message encrypted by one of the node encryption keys as long as the decrypting device 110 can use the node decryption key corresponding to any of the node encryption keys.

For the purpose of significantly reducing the number of node encryption keys used for encrypting the message, the encrypting device 100 according to this embodiment dynamically selects as to which terminal nodes of the lower-level subtrees 220 the plurality of decrypting devices 110 corresponding to the respective lower-level subtrees 220 are associated with, depending on a group of decrypting devices 110 enabled to decrypt the encrypted message. In this way, the encrypting device 100 can sort the plurality of decrypting devices 110 in the lower-level subtrees 220, minimize the number of node encryption keys used for encryption, and thereby reduce the message length.

FIG. 3 shows a configuration of the encrypting device 100 according to this embodiment. The encrypting device 100 receives the message and information for identifying the group of decrypting devices 110 enabled for decryption, then generates the encrypted message which can be decrypted only by these decrypting devices 110, and then transmits the encrypted message to the decrypting devices 110. The encrypting device 100 includes a node associating information generating unit 300, a node extracting unit 310, a higher-level node encryption key generating unit 320, a lower-level node encryption key generating unit 330, and a message encrypting unit 340.

The node associating information generating unit 300 receives designation of the group of decrypting devices 110 enabled for decryption, and generates node associating information for associating decrypting devices 110 with terminal nodes in terms of each message concerning each of the lower-level subtrees 220. The node extracting unit 310 stores the tree structures of the plurality of lower-level subtrees 220 and the tree structure of the higher-level tree 210 to which the respective root nodes of the plurality of lower-level subtrees 220 are connected as the plurality of terminal nodes. When receiving the node associating information, the node extracting unit 310 associates the respective lower-level subtrees 220 with the respective decrypting devices 110. Then, the node extracting unit 310 extracts the set of nodes including decrypting devices 110 enabled to decrypt the encrypted message in the descendant terminal nodes thereof and not including a decrypting device 110 with decryption disabled in the descendant terminal nodes thereof as the set of decryption enabled nodes.

The higher-level node encryption key generating unit 320 generates the node encryption key corresponding to the decryption enabled node in the higher-level tree 210 among the extracted decryption enabled nodes. The lower-level node encryption key generating unit 330 is an example of the node encryption key generating unit according to the present invention, which generates the node encryption key corresponding to the decryption enabled node in any of the lower-level subtrees 220 among the extracted decryption enabled nodes. The message encrypting unit 340 encrypts the message by use of the node encryption key corresponding to each of the decryption enabled nodes to generate the encrypted message, and then transmits the encrypted message to the decrypting devices 110. The encrypting device 100 may further include a public key calculating unit 350 and a publicizing unit 360.

The public key calculating unit 350 calculates the product of the public keys e_(j) which are used by the respective decrypting devices 110 enabled to decrypt the encrypted message for generating the node decryption keys. The publicizing unit 360 publicizes the product of the public keys calculated by the public key calculating unit 350 to the decrypting devices 110.

FIG. 4 shows an operational flow of the encrypting device 100 according to this embodiment. Firstly, the node associating information generating unit 300 receives designation of the group of decrypting devices 110 enabled for decryption. Then, concerning each of the lower-level subtrees 220 including at least one decrypting device 110 enabled for decryption, the node associating information generating unit 300 generates the node associating information for associating each of the plurality of decrypting devices 110 with each of the plurality of terminal nodes in the lower-level subtrees 220 in relation to the group of decrypting devices 110 enabled to decrypt the encrypted message (S400). Here, the node associating information generating unit 300 generates the node associating information in terms of each of the lower-level subtrees 220 so as to minimize the number of the decryption enabled nodes of the lower-level subtrees 220 to be extracted by the node extracting unit 310.

To be more precise, the node associating information generating unit 300 generates τ_(i)( . . . ) indicating a sorting method as the node associating information concerning S_(i), which represents the lower-level subtree 220 including at least one decrypting device 110 enabled for decryption, and then publicizes the information to the decrypting devices 110. Here, τ_(i)( . . . ) is a bi jective function from a set {1, . . . , y} to {1, . . . , y}, which indicates that the decrypting device 110 indicated by u_(i,j) is associated with a τ_(i)(j)-th terminal node of S_(i). Alternatively, the node associating information generating unit 300 may generate a bitmap as the node associating information, in which enabling or disabling of decryption of the encrypted message is represented by a flag in terms of each of the plurality of decrypting devices 110. By using this node associating information, the node associating information generating unit 300 can associate the plurality of decrypting devices 110 dynamically to the respective terminal nodes for each message. Moreover, by continuously arranging decrypting devices 110 enabled for decryption on the left side (the side closer to v_(i,y)) in the lower-level subtree 220, for example, the node associating information generating unit 300 can reduce the node number of all the sets of decryption enabled nodes including decrypting devices 110, which are enabled to decrypt the encrypted message, as descendants in the lower-level subtrees 220.

Next, the node extracting unit 310 extracts the set of decryption enabled nodes in the tree 200 associated with the plurality of decrypting devices 110 by the node associating information, in which decrypting devices 110 enabled to decrypt the encrypted message are associated with the descendant terminal nodes and a decrypting device 110 with the decrypting of the encrypted message disabled is not associated with any of the descendant terminal nodes (S410). In this case, the node extracting unit 310 extracts the set of decryption enabled nodes to minimize the number of decryption enabled nodes among the sets of decryption enabled nodes in which all the decrypting devices 110 enabled to decrypt the encrypted message are associated with the descendant terminal node of any of the decryption enabled nodes.

Here, when decrypting devices 110 corresponding to all the terminal nodes connected to at least one lower-level subtree 220 are enabled to decrypt the encrypted message, the node extracting unit 310 extracts the decryption enabled node, in which the root node of the lower-level subtree 220 is connected as the descendant terminal node and the root node of a lower-level subtree 220 having a terminal node associated with the decrypting device 110 with the decrypting of the encrypted message disabled is not connected as the descendant terminal code. In this way, when (on condition that) all the decrypting devices 110 connected to the lower-level subtree 220 are enabled for decryption, it is possible to reduce calculation costs required for the respective decrypting devices 110 to generate the respective node decryption keys by tracing numerous nodes from the terminal node of the lower-level subtree 220.

Next, the higher-level node encryption key generating unit 320 and the lower-level node encryption key generating unit 330 generate the node encryption keys respectively corresponding to the extracted decryption enabled nodes (S420). Specifically, the higher-level node encryption key generating unit 320 generates the node encryption keys corresponding to the decryption enabled nodes in the higher-level tree 210 out of the extracted decryption enabled nodes. For example, the higher-level node encryption key generating unit 320 generates the node encryption keys by use of a one-way function with trapdoor as disclosed in Non-Patent Document 9. Alternatively, the higher-level node encryption key generating unit 320 may store the node encryption keys corresponding to all the nodes in the higher-level tree 210 in advance and select node encryption keys in relation to the extracted decryption enabled nodes.

Meanwhile, the lower-level node encryption key generating unit 330 generates a node encryption key corresponding to the decryption enabled node in any of the lower-level subtrees 220 out of the extracted decryption enabled nodes. The lower-level node encryption key generating unit 330 according to this embodiment generates the node encryption key L_(i,l) for the decryption enabled node v_(i,l) in the lower-level subtree 220 of S_(i) by use of the following formula (2): $\begin{matrix} \left\lbrack {{Formula}\quad 2} \right\rbrack & \quad \\ {{L_{i,l} = {{A_{l}}^{{Ti}/\alpha_{i,l}}{mod}\quad n_{i}}}{{provided}\quad{that}}{\alpha_{i,l} = {\prod\limits_{k \in U_{i,l}}^{y}d_{i,k}}}} & (2) \end{matrix}$

Here, U_(i,l) is a set of all the decrypting devices 110 (u_(i,j)) connected to the subtree applying the decryption enabled node as the root node in terms of j after the association between the respective decrypting devices 110 and the respective terminal nodes is modified by the node associating information. That is, the lower-level node encryption key generating unit 330 generates the node encryption key L_(i,l), based on the product T_(i)/α_(i,j) of the secret keys d_(i,j) corresponding to the respective decrypting devices 110 not associated with the respective descendant terminal nodes of the decryption enabled node out of the plurality of decrypting devices 110 associated with the lower-level subtree 220. To be more precise, the lower-level node encryption key generating unit 330 finds the modulus relative to n_(i) of a value obtained by raising a predefined node encryption key corresponding to a terminal node of the higher-level tree 210 by the product T_(i)/α_(i,j) of the secret keys corresponding to the respective decrypting devices 110 associated with the descendant terminal nodes of the decryption enabled node, and thereby generates the node encryption key based on the raised value.

Next, the message encrypting unit 340 encrypts the message by use of the node encryption key associated with the decryption enabled node (S430). Specifically, the message encrypting unit 340 generates one encrypted message or a plurality of encrypted messages by respectively encrypting the message while using the node encryption keys corresponding to the respective decryption enabled nodes which belong to the set of extracted decryption enabled nodes. Here, each of the encrypted messages is encrypted either by use of the node encryption key associated with the decryption enabled node in any of the lower-level subtrees 220 or by use of the node encryption key associated with the decryption enabled node in the higher-level tree 210.

To be more precise, the message encrypting unit 340 determines a title key K for encrypting a message M, and generates a broadcast message containing the following content by use of the node encryption keys L_(s1), . . . , L_(sm) corresponding to a set of decryption enabled nodes {s₁, . . . , s_(m)}:

[Formula 3] <[s₁, . . . ,s_(m), E_(L) _(s1) (K), . . . ,E_(L) _(sm) (K)],F_(K)(M)>  (3)

Note that E_(LX)(K) is a function for encrypting the title key K with the node encryption key Lx, and that F_(K)(M) is a function for encrypting the message M with the title key K. The message indicated in the formula (3) includes node numbers s₁, . . . , s_(m) of the respective decryption enabled nodes belonging to the set of decryption enabled nodes, the title key encrypted by the node encryption key L_(s1), . . . , the title key encrypted by the node encryption key L_(sm), and the message M encrypted by the title key. As described above, by encrypting the message M with the title key K and encrypting the title key K with the node encryption key L_(s1), the message is indirectly encrypted by the node encryption key L_(s1).

Next, the message encrypting unit 340 outputs the broadcast message indicated in the formula (3) by means of transmission to all the decrypting devices 110 (S440).

Next, the public key calculating unit 350 calculates the product of the public keys e_(j) used by the respective decrypting devices 110 enabled to decrypt the encrypted message for generating the node decryption keys (S450). To be more precise, the public key calculating unit 350 calculates the product β_(i,l) of the public keys corresponding to each of the decrypting devices 110 other than the decrypting devices 110 corresponding to the respective descendant terminal nodes of the decryption enabled node v_(i,l) in terms of each of the decryption enabled nodes in the lower-level subtrees 220 extracted by the node extracting unit 310 in relation to each of the decrypting devices 110 (see the following formula (4)): $\begin{matrix} \left\lbrack {{Formula}\quad 4} \right\rbrack & \quad \\ {\beta_{i,l} = {\prod\limits_{k \in U_{i,l}}e_{k}}} & (4) \end{matrix}$

Next, the publicizing unit 360 publicizes the product of the public keys calculated by the public key calculating unit 350 to the plurality of decrypting devices 110 (S460). In this way, it becomes unnecessary for each of the decrypting devices 110 to calculate the product of the public keys, and it is thereby possible to reduce calculation loads on the decrypting devices 110.

According to the above-described encrypting device 100, it is possible to reduce the number of node encryption keys used for encryption significantly by dynamically reorganizing the association of the decrypting devices 110 with respect to the terminal nodes of the lower-level subtrees 220 in relation to the set of decrypting devices 110 enabled to decrypt the encrypted message.

In the case of distributing a program such as a television program, the encrypted communication system 10 shown above sequentially distributes a plurality of messages constituting the program. Here, when the present invention is applied to allow a content distribution company to distribute a pay-per-view (PPV) program, for example, the encrypting device 100 has to newly permit the decrypting device 110 of a user, who has paid a service charge in the course of the program, to decrypt encrypted messages. To realize this, the encrypting device 100 modifies the set of decryption enabled nodes.

In this case, the decryption keys need to be recalculated by many decrypting devices 110 if the set of decryption enabled nodes is largely modified. Therefore, the node associating information generating unit 300 attempts to modify the set of decryption enabled nodes as little as possible even when a new user is added. Specifically, in the case of outputting the first encrypted message and subsequently outputting the second encrypted message having a set of decrypting devices 110 enabled to decrypt encrypted messages different from the set in the first encrypted message, the node associating information generating unit 300 generates the node associating information so as to minimize the number of decrypting devices 110 subject to modification of the decryption keys. To be more precise, the node associating information generating unit 300 generates the node associating information in which the existing decrypting device 100 enabled to decrypt the first encrypted message and enabled to decrypt the second encrypted message is associated with the same terminal node as the terminal node associated in encryption of the first encrypted message. In this way, the node associating information generating unit 300 can minimize the number of decrypting devices 110 subject to modification of the decryption keys.

In addition, the node associating information generating unit 300 generates the node associating information which minimizes the number of decryption enabled nodes to be extracted by the node extracting unit 310 in relation to the second encrypted message. For example, the node associating information generating unit 300 arranges the decrypting devices 110 enabled for decryption continuously on the left side (the side closer to v_(i,y)) in a lower-level subtree 220, and arranges the decrypting device 110 newly enabled for decryption adjacently on the right side of the decrypting devices 110 which have been already enabled for decryption. In this way, it is possible to minimize the number of decryption enabled nodes.

FIG. 5 shows a configuration of the decrypting device 110 according to this embodiment. The decrypting device 110 receives and decrypts the encrypted message encrypted by the encrypting device 100. The decrypting device 110 includes a node associating information acquiring unit 500, a terminal node specifying unit 510, a higher-level node decryption key storing unit 520, a higher-level node decryption key acquiring unit 530, a device decryption key storing unit 540, a lower-level node decryption key generating unit 550, and a message decrypting unit 560.

The node associating information acquiring unit 500 acquires the node associating information used for encrypting the encrypted message from the encrypting device 100. The terminal node specifying unit 510 specifies a terminal node of the lower-level subtree 220 corresponding to the decrypting device 110 based on the node associating information. The higher-level node decryption key storing unit 520 is an example of a node decryption key storing unit according to the present invention, which stores the respective node decryption keys corresponding to the nodes ranging from the terminal node of the higher-level tree 210 corresponding to the root node of the lower-level subtree 220, in which the decrypting device 110 is associated with the terminal node thereof, to the root node of the higher-level tree 210. The higher-level node decryption key acquiring unit 530 acquires the node decryption key corresponding to the decryption enabled node from the higher-level node decryption key storing unit 520 when the encrypted message is encrypted by use of the node encryption key corresponding to the decryption enabled node in the higher-level tree 210.

The device decryption key storing uni t 540 stores the device decryption key I_(i,j) of the decrypting device, which is shown in the formula (1). As shown in the formula (1), the device decryption key I_(i,j) is determined based on the product T_(i)/d_(i,j) of the secret keys d_(i,j) corresponding to the decrypting devices 110 other than the relevant decrypting device 110 out of the plurality of decrypting devices 110 associated with the lower-level subtree 220 to which the relevant decrypting device 110 belongs. To be more precise, the device decryption key I_(i,j) is determined by finding the modulus relative to n_(i) of the value obtained by raising the node key of the terminal node of the higher-level tree 210 being the predetermined number by the product T_(i)/d_(i,j) of the secret keys. The lower-level node decryption key generating unit 550 generates a node decryption key corresponding to the decryption enabled node based on the device decryption key I_(i,j) when the encrypted message is encrypted by use of the node encryption key corresponding to the decryption enabled node in the lower-level subtree 220. The message decrypting unit 560 decrypts the encrypted message by use of the node decryption key either acquired by the higher-level node decryption key acquiring unit 530 or generated by the lower-level node decryption key generating unit 550.

FIG. 6 shows an operational flow of the decrypting device 110 according to this embodiment. The node associating information acquiring unit 500 acquires the node associating information from the encrypting device 100, which is generated in relation to the group of decrypting devices 110 enabled to decrypt the encrypted message (S600). Next, the terminal node specifying unit 510 specifies the terminal node associated with the decrypting device 110 in the lower-level subtree 220 corresponding to the decrypting device 110 based on the node associating information (S610).

Next, the higher-level node decryption key acquiring unit 530 or the lower-level node decryption key generating unit 550 either acquires the node decryption key corresponding to the node encryption key used for encrypting the encrypted message from the higher-level node decryption key storing unit 520 or generates the node decryption key based on the device decryption key (S620). Specifically, when an encrypted message included in the message broadcast by the encrypting device 100 is encrypted by a node encryption key of the higher-level tree 210, the higher-level node decryption key acquiring unit 530 acquires the node decryption key corresponding to the node encryption key from the higher-level node decryption key storing unit 520. To be more precise, when any of the nodes ranging from the terminal node of the higher-level tree 210 corresponding to the root node of the lower-level subtree 220, in which the decrypting device 110 is associated with a terminal mode thereof, to the root node of the higher-level tree 210 is the decryption enabled node, the higher-level node decryption key acquiring unit 530 reads the node decryption key corresponding to the decryption enabled node out of the higher-level node decryption key storing unit 520.

In the meantime, when an encrypted message included in the message broadcast by the encrypting device 100 is encrypted by a node encryption key of the lower-level subtree 220, the lower-level node decryption key generating unit 550 generates the node decryption key corresponding to the node encryption key. Specifically, when any of the nodes ranging from the terminal node of the lower-level subtree 220 associated with the decrypting device 110 to the root node of the lower-level subtree 220 is the decryption enabled node, the lower-level node decryption key generating unit 550 generates the node decryption key corresponding to the decryption enabled node.

The lower-level node decryption key generating unit 550 according to this embodiment generates the node decryption key L_(i,l) based on the device decryption key I_(i,x) of the relevant decrypting device 110 indicated as (U_(i,x)), and on public keys e_(k) corresponding to the respective decrypting devices 110 other than the relevant decrypting device 110, which correspond to the respective descendant terminal nodes of the decryption enabled node. To be more precise, the lower-level node decryption key generating unit 550 generates the node decryption key L_(i,l) having the identical value to the node encryption key as defined in the formula (2) based on a value obtained by raising the device decryption key of the decrypting device 110 by the product β_(i,l)/e_(x) of the public keys e_(k) of the respective decrypting devices 110 other than the relevant decrypting device 110, which correspond to the respective descendant terminal nodes of the decryption enabled node (formula (5)):

[Formula 5] L _(i,l) =I _(i,x) ^(β) ^(i,l) _(/e) ^(x) mod n _(i)  (5)

This node decryption key L_(i,l) is based on the product of secret keys d_(i,k) corresponding to the decrypting devices 110 which do not belong to the group of decrypting devices 110 enabled to decrypt the encrypted message among the plurality of decrypting devices 110 associated with the lower-level subtree 220.

The formula (5) utilizes the fact that A^(e·d)≡A (mod n_(i)) is satisfied between a public key e and an encryption key d in the RSA encryption system. Specifically, by finding the raised value by use of the product β_(i,l)/e_(x) of the public keys of the device decryption key I_(i,l), the product T_(i)/d_(i,j) of the encryption keys of the decrypting devices 110 other than the relevant decrypting device 110 being a multiplier component of A_(i) in the formula (1) is multiplied by the product β_(i,j)/e_(j) of the public keys of the decrypting devices 110 enabled for decryption, and the encryption key d_(i,j) of the decrypting device 110 enabled for decryption is subtracted from the multiplier. In this way, the lower-level node decryption key generating unit 550 can obtain the node decryption key which is identical to the node encryption key generated by the encrypting device 100.

Next, the message decrypting unit 560 decrypts the encrypted message by use of the node decryption key which is either acquired by the higher-level node decryption key acquiring unit 530 or generated by the lower-level node decryption key generating unit 550 (S630). Specifically, the message decrypting unit 560 searches the decryption enabled node s_(l) corresponding to the decrypting device 110 out of a broadcast message indicated in the following formula (6):

[Formula 6] <[s₁, . . . ,s_(m), C₁, . . . , C_(m)], M′>  (6)

Next, the message decrypting unit 560 decrypts the title key K in accordance with the following formula (7) while using a node decryption key L_(sl) corresponding to the decryption enabled node s_(l):

[Formula 7] K=D _(L) _(sl) (C _(l))  (7)

Here, D( ) is a decrypting function corresponding to E( ).

Thereafter, the message decrypting unit 560 decrypts the message in accordance with the following formula (8) while using the decrypted title key K:

[Formula 8] M=G _(K)(M′)  (8)

According to the above-described encrypted communication system 10, the secret key d_(i,j) is managed by the encrypting device 100 and is kept secret from the decrypting devices 110. Moreover, each of the decrypting devices 110 manages the device decryption key I_(i,j) based on the secret keys d_(i,j) for the decrypting devices 110 other than the relevant decrypting device among the decrypting devices 110 corresponding to the lower-level subtree 220 in secret from other decrypting devices 110. Accordingly, each of the decrypting devices 110 can generate the node decryption key L_(i,l) by removing the secret key d_(i,j) out of the multiplier constituting the device decryption key I_(i,j) while using the public keys e_(j) corresponding to other decrypting devices 110 enabled to decrypt the message.

Meanwhile, a decrypting device 110 with the decrypting of the message disabled does not possess the encryption key d_(i,j) corresponding to the decrypting device 110. Accordingly, the decrypting device 110 cannot add the encryption key d_(i,j) to the multiplier to constitute the device decryption key I_(i,j) possessed by the decrypting device 110. Moreover, even if a plurality of decrypting devices 110 with the decrypting of the message disabled exchange device decryption keys, any of the decrypting devices 110 cannot add the encryption key d_(i,j) of the decrypting device 110 with the decrypting of the message disabled to the multiplier to constitute the device decryption key I_(i,j) possessed by the decrypting device 110. Therefore, the decrypting device 110 with the decrypting of the message disabled cannot generate the node decryption key corresponding to the decryption enabled node. In this way, confidentiality of the message is retained.

Note that the encrypted communication system 10 according to this embodiment manages lower layers of the tree 200 by use of the tree structure. Alternatively, the encrypted communication system 10 may manage the lower layers of the tree 200 by use of other methods. For example, the encrypted communication system 10 may dynamically select and group an arbitrary set of decrypting devices 110 enabled for decryption among a plurality of decrypting devices 110 corresponding to each lower-level subtree 220.

To be more precise, the node associating information generating unit 300 functions as a group associating information generating unit, and dynamically generates the group of the decrypting devices 110 enabled to decrypt the encrypted message in terms of each terminal node of the higher-level tree 210 out of the plurality of decrypting devices 110 associated with the terminal node. Then, group information for identifying the decrypting devices 110 belonging to the group is outputted to the node extracting unit 310 and to the network 120. The node extracting unit 310 extracts the decryption enabled node in terms of the tree 200, and outputs the decryption enabled node to the higher-level node encryption key generating unit 320. Meanwhile, in terms of the lower layers, the node extracting unit 310 outputs the group information to the lower-level node encryption key generating unit 330. The lower-level node encryption key generating unit 330 functions as an encryption key generating unit for the lower layers, and calculates a group encryption key based on the product of the secret keys d_(i,j) corresponding to the respective decrypting devices 110 not belonging to the group of decrypting devices 110 enabled to decrypt the encrypted message among the plurality of decrypting devices 110 as similar to calculation of the node encryption key. Thereafter, the message encrypting unit 340 encrypts the message by use of either the node encryption key outputted from the higher-level node encryption key generating unit 320 or by use of the group encryption key generated by the lower-level node encryption key generating unit 330.

In this case, the node associating information acquiring unit 500 functions as a group information acquiring unit and acquires the group information generated by the encrypting device 100. The lower-level node decryption key generating unit 550 functions as a group decryption key generating unit, and generates a group decryption key L_(i,j) for the encrypted message based on the product of the secret keys d_(i,k) corresponding to the decrypting devices 110 which do not belong to the group of decrypting devices 110 enabled to decrypt the encrypted message, based on the public key e_(j) corresponding to the respective decrypting devices 110 belonging to the group of decrypting devices 110 enabled to decrypt the encrypted message and on the device decryption key I_(i,j) of the relevant decrypting device 110. Then, the message decrypting unit 560 decrypts the encrypted message by use of the group decryption key L_(i,l) in terms of the lower layers of the tree 200.

FIG. 7 shows a configuration of the encrypting device 100 in the encrypted communication system 10 according to a modified example of this embodiment. The encrypted communication system 10 according to this modified example reduces the message length by selecting a tree structure capable of minimizing the number of decryption enabled nodes out of a plurality of tree structures. The encrypting device 100 according to this modified example includes a tree structure storing unit 710, a tree structure selecting unit 700, the node extracting unit 310, a node encryption key generating unit 720, and the message encrypting unit 340. The tree structure storing unit 710 stores a plurality of tree structures. Here, the tree structure storing unit 710 stores the plurality of tree structures by respectively associating sets of decrypting devices 110 having more similarity of types or characteristics with descendant terminal nodes of a decryption enabled node closer to the terminal node, based on mutually different types of the decrypting devices 110 or on various characteristics of users of the decrypting devices 110. For example, the tree structure storing unit 710 stores multiple types of tree structures based on whether information processing devices functioning as the decrypting devices 110 are PCs, PDAS, cellular telephones, and the like, on manufacturers of the information processing devices functioning as the decrypting devices 110, and on characteristics of the users including ages, genders, addresses, preferences, membership of institutions, and the like.

The tree structure selecting unit 700 selects any of the tree structures based on the set of decrypting devices 110 enabled to decrypt the encrypted message, and outputs tree structure selection information for specifying the selected tree structure to the node extracting unit 310 and to the network 120. The node extracting unit 310 extracts the set of decryption enabled nodes in terms of the selected tree structure as similar to the node extracting unit 310 illustrated in FIG. 3. The node encryption key generating unit 720 generates the node encryption key corresponding to each of the decryption enabled nodes as similar to the higher-level node encryption key generating unit 320. The message encrypting unit 340 encrypts the message by use of the respective node encryption keys associated with the respective decryption enabled nodes belonging to the set of selected decryption enabled nodes as similar to the message encrypting unit 340 illustrated in FIG. 3.

FIG. 8 shows an operational flow of the encrypting device 100 according to the modified example of this embodiment. Firstly, the tree structure selecting unit 700 selects any of the tree structures based on the set of decrypting devices 110 enabled to decrypt the encrypted message (S800). Here, the tree structure selecting unit 700 selects the set of nodes to minimize the number of decryption enabled nodes among the sets of decryption enabled nodes selected in terms of each tree structure. Alternatively, the tree structure selecting unit 700 may select any of the tree structures based on the type of decrypting devices 110 enabled to decrypt the encrypted message or on the characteristics of users. Specifically, the tree structure selecting unit 700 may select a predetermined tree structure based on the characteristics of the users, such as ages or genders, who are prospective audiences of a program of contents to be distributed, for example.

The node extracting unit 310 extracts the set of decryption enabled nodes which do not contain the decrypting device 110 with the decrypting of the encrypted message disabled in a descendant terminal node but contains the decrypting device 110 enabled to decrypt the encrypted message in a descendant terminal node of any of the nodes as similar to S410 in FIG. 4 (S410). Next, the node encryption key generating unit 720 generates the node encryption key corresponding to each of the decryption enabled nodes belonging to the set of decryption enabled nodes as similar to S420 in FIG. 4 (S420). In this case, the node encryption key generating unit 720 may generate the node encryption key for each of the decryption enabled nodes by sequentially generating the node encryption keys starting from the node decryption key corresponding to the root node and in the order of the node encryption key for a parent node to the node encryption keys for child nodes while utilizing a one-way function with trapdoor as disclosed in Non-Patent Document 9.

Next, the message encrypting unit 340 encrypts the message respectively by use of the node encryption keys associated with the respective decryption enabled nodes belonging to the selected set of decryption enabled nodes (S430). To be more precise, the message encrypting unit 340 encrypts the message by use of the title key, then encrypts the title key by use of each of the node encryption keys, and thereby generates the broadcast message containing the encrypted messages indirectly encrypted by the respective node encryption keys. Thereafter, the broadcast message including the plurality of encrypted messages is transmitted to the respective decrypting devices 110 (S830).

According to the encrypting device 100 of this modified example, it is possible to reduce the number of node encryption keys used for encryption by dynamically selecting the tree structure in relation to the set of the decrypting devices 110 enabled to decrypt the encrypted message.

FIG. 9 shows a configuration of the decrypting device 110 according to the modified example of this embodiment. The decrypting device 110 according to this modified example includes a tree structure selection information acquiring unit 900, a node specifying unit 910, a node decryption key storing unit 920, a node decryption key acquiring unit 930, and the message decrypting unit 560. The tree structure selection information acquiring unit 900 acquires the tree structure selection information transmitted from the encrypting device 100. The node specifying unit 910 specifies the selected decryption enabled node out of the nodes located on the path ranging from the terminal node corresponding to the decrypting device 110 to the root node thereof in the tree structure as a pool for selecting the set of nodes. The node decryption key storing unit 920 stores the respective node decryption keys corresponding to the respective nodes on the path ranging from the terminal node corresponding to the decrypting device 110 to the root node thereof, in terms of each of the plurality of tree structures. The node decryption key acquiring unit 930 acquires the node decryption key associated with the decryption enabled node specified by the node specifying unit 910 in the tree structure as the pool for selecting the set of the decryption enabled nodes from the node decryption key storing unit 920. The message decrypting unit 560 decrypts the encrypted message encrypted by use of the node encryption key associated with the decryption enabled node specified by the node decryption key storing unit 920 while using the acquired node decryption key.

FIG. 10 shows an operational flow of the decrypting device 110 according to the modified example of this embodiment. Firstly, the tree structure selection information acquiring unit 900 acquires the tree structure selection information transmitted from the encrypting device 100 (S1000). Next, the node specifying unit 910 specifies the decryption enabled node on the path ranging from the terminal node corresponding to the decrypting device 110 to the root node thereof in the selected tree structure (S1010). Next, the node decryption key acquiring unit 930 acquires the node decryption key associated with the decryption enabled node in the selected tree structure from the node decryption key storing unit 920 (S1020). Alternatively, the decrypting device 110 may generate the node decryption key for each of the decryption enabled nodes by sequentially generating the node decryption keys starting from the terminal node corresponding to the decrypting device 110 and in the order of the node decryption keys for the child nodes to the node decryption keys for the parent node. Next, the message decrypting unit 560 decrypts the encrypted message encrypted by the node encryption key associated with the decryption enabled node specified by the node specifying unit 910 while using the acquired node decryption key as similar to the message decrypting unit 560 illustrated in FIG. 5 (S630). To be more precise, the title key encrypted by the node encryption key is decrypted by use of the node decryption key and then the message is decrypted by use of the decrypted title key.

In the above-described configuration, the encrypted communication system 10 may designate the decrypting device 110 enabled for decryption depending on an AND condition, an OR condition, and the like to be applied to the plurality of tree structures. To be more precise, in the case of the AND condition, in the encrypting device 100, the tree structure selecting unit 700 selects the first tree structure and the second tree structure to be used as the AND condition, and the node extracting unit 310 extracts a set of the first decryption enabled node in the first tree structure and of the second decryption enabled node in the second tree structure. Here, as the set of the first and second decryption enabled nodes, the node extracting unit 310 selects the set of nodes which contains the decrypting device 110 enabled to decrypt the encrypted message in descendant terminal nodes in common but does not contain the decrypting device 110 with the decrypting of the encrypted message disabled in the descendant terminal nodes of at least one of the decryption enabled nodes. Moreover, the node encryption key generating unit 720 generates the node encryption keys corresponding to these decryption enabled nodes, and the message encrypting unit 340 encrypts the message by use of the first node encryption key associated with the first decryption enabled node and the second node encryption key associated with the second decryption enabled node.

The tree structure selection information acquiring unit 900 in the decrypting device 110 receiving the encrypted messages receives the tree structure selection information, and specifies the first and second tree structures. Next, the node specifying unit 910 specifies the first and second decryption enabled nodes. Next, the node decryption key storing unit 920 acquires the first node decryption key associated with the first decryption enabled node and the second node decryption key associated with the second decryption enabled node. Thereafter, the message decrypting unit 560 decrypts the encrypted messages by use of the first and second node decryption keys thus acquired.

On the contrary, in the case of the OR condition, in the encrypting device 100, the tree structure selecting unit 700 selects first and second tree structures to be used as the OR condition, and the node extracting unit 310 extracts a set of the first decryption enabled node in the first tree structure and of the second decryption enabled node in the second tree structure. Here, as the set of the first and second decryption enabled nodes, the node extracting unit 310 selects the set of nodes which contains the decrypting device 110 enabled to decrypt the encrypted message in any of the descendant terminal nodes but which does not contain the decrypting device 110 with the decrypting of the encrypted message disabled in the descendant terminal nodes of the decryption enabled node. Moreover, the node encryption key generating unit 720 generates the node encryption keys corresponding to these decryption enabled nodes, and the message encrypting unit 340 generates the encrypted message encrypted by use of the first node encryption key associated with the first decryption enabled node and the encrypted message encrypted by use of the second node encryption key associated with the second decryption enabled node.

The tree structure selection information acquiring unit 900 in the decrypting device 110 receiving the encrypted messages receives the tree structure selection information, and specifies the first and second tree structures. Next, the node specifying unit 910 specifies the first and second decryption enabled nodes. Next, the node decryption key storing unit 920 acquires the first node decryption key associated with the first decryption enabled node and the second node decryption key associated with the second decryption enabled node. Thereafter, the message decrypting unit 560 decrypts any of the encrypted messages by use of the first or second node decryption key thus acquired.

By rendering the decryption enabled nodes selectable depending on the AND condition, the OR condition, and the like, it is possible to further reduce the message length.

FIG. 11 shows a tree structure for managing the keys by the encrypted communication system 10 according to the modified example of this embodiment. In the figure, the encrypted communication system 10 uses tree structures TK₁ to TK₃, which are determined based on mutually different types of the decrypting devices 110 or on various characteristics of the users of the decrypting devices 110. The tree structure selecting unit 700 in the encrypting device 100 selects any of the tree structures TK₁ to TK₃ based on the set of decrypting devices 110 enabled to decrypt the encrypted message. In this example, the set of decrypting devices 110 enabled to decrypt the encrypted message is defined as {u₂, u₃, u₆, u₈, u₉, u₁₀, u₁₁, u₁₂, u₁₃, u₁₆}, and the set of decrypting devices 110 with the decrypting of the encrypted message disabled is defined as {u₁, u₄, u₅, u₇, u₁₄, u₁₅}. When the tree structures TK₁ to TK₃ are compared with one another in this example, it is the tree structure TK₂ which minimizes the number of the decryption enabled nodes. Therefore, the tree structure selecting unit 700 selects the tree structure TK₂.

According to the encrypted communication system 10 of this modified example, each of the decrypting devices 110 can receive the encrypted message with the addition of the tree structure selection information for specifying the selected tree structure and decrypt the encrypted message by use of the decryption key corresponding to the decryption enabled node in the selected tree structure. In this way, it is possible to reduce the number of node keys used for decryption and thereby to shorten the message length. Moreover, by storing these tree structures in each of the decrypting devices 110 in advance, it is possible to reduce the number of node keys without allowing the decrypting device 110 to acquire the node associating information having a larger data amount as compared to the tree structure selection information. For this reason, it is possible to reduce the message length of the encrypted message efficiently in an environment where the encrypting device 100 and the decrypting device 110 cannot communicate with each other.

FIG. 12 shows a graph of comparison between the encrypted communication system 10 according to this embodiment and conventional methods. This graph is plotted by taking message lengths in the CS method and the SD method in the case of N=2¹⁴ and message lengths in the case of changing the number of layers h of the higher-level tree 210 among 1, 8, and 11 as the longitudinal axis, while taking the number r of decrypting devices 110 with decryption disabled as the lateral axis. Here, the message length in each of the methods represents an average value when selecting decryption devices 110 with decryption disabled at random. It is apparent that the encrypted communication system 10 according to this embodiment can reduce the message length even when h is equal to 11, and that the encrypted communication system 10 can reduce the message length efficiently in particular when the number of r is increased to about half of the total number.

Meanwhile, the number of the keys each of the decrypting devices 110 is suppose to store is equal to log N+1 in the CS method and ((log N)²+log N)/2+1 in the SD method. On the contrary, the number of keys is equal to h+1 (1≦h≦log N−1) according to the encrypted communication system 10 of this embodiment. Moreover, when reducing the number of the keys by calculating keys in each of the decrypting devices 110, the number of keys is equal to 1 in the CS method and log N in the SD method. On the contrary, the number of the keys is equal to 1 according to the encrypted communication system 10 of this embodiment. Therefore, the encrypted communication system 10 according to this embodiment can reduce the message length significantly while suppressing the number of keys to be stored by the decrypting device 110 as small as the CS method and smaller than the SD method.

FIG. 13 shows a graph of comparison between the encrypted communication system 10 according to the modified example of this embodiment and the conventional methods. This graph is plotted by taking the message lengths in the CS method and the SD method in the case of N=2¹⁴ and the message lengths by the encrypted communication system 10 according to the modified example of this embodiment as the longitudinal axis, while taking the number r of decrypting devices 110 with decryption disabled as the lateral axis. Here, concerning the encrypted communication system 10 according to this modified example, the message length is obtained depending on a hit rate indicating the percentage of decrypting devices 110 with decryption disabled included in the selected tree structure. Meanwhile, the message length in each of the methods represents the average value when selecting decryption devices 110 disabled for decryption at random. According to encrypted communication system 10 of this modified example, it is possible to reduce the message length to about half as compared to the SD method even when the hit rate is equal to 90%.

Meanwhile, the number of keys each of the decrypting devices 110 is supposed to store is equal to log N+1 in the CS method and ((log N)²+log N)/2+1 in the SD method. On the contrary, the number of keys is equal to T*log N according to the encrypted communication system 10 of this embodiment (provided that T is the number of selectable tree structures). Moreover, when it is made possible to calculate the keys in each of the decrypting devices 110 by use of a one-way function with trapdoor, the number of keys is equal to 1 in the CS method and is equal to T according to the encrypted communication system 10 of this modified example. Therefore, the encrypted communication system 10 according to this modified example can reduce the message length significantly by increasing the number of keys to be stored by the decrypting device 110 to some extent as compared to the CS method while applying an appropriate T factor.

FIG. 14 shows an example of a hardware configuration of a computer 1900 according to this embodiment. The computer 1900 according to this embodiment includes: a CPU peripheral unit having a CPU 2000, a RAM 2020 and a graphic controller 2075 which are connected to one another by a host controller 2082, and a display device 2080; an input/output unit having a communication interface 2030, a hard disk drive 2040, and a CD-ROM drive 2060 which are connected to the host controller 2082 by an input/output controller 2084; and a legacy input/output unit having a ROM 2010, a flexible disk drive 2050, and an input/output chip 2070 which are connected to the input/output controller 2084.

The host controller 2082 connects the RAM 2020, the CPU 2000 configured to access the RAM 2020 at a high transfer rate, and the graphic controller 2075 to one another. The CPU 2000 operates based on programs stored in the ROM 2010 and the RAM 2020 to control the respective units. The graphic controller 2075 acquires image data generated by the CPU 2000 and the like on a frame buffer provided in the RAM 2020, and displays the image data on the display device 2080. Alternatively, the graphic controller 2075 may incorporate the frame buffer for storing the image data generated by the CPU 2000 and the like.

The input/output controller 2084 connects the host controller 2082, the communication interface 2030 which is a relatively high-speed input/output device, the hard disk drive 2040, and the CD-ROM drive 2060 to one another. The communication interface 2030 communicates with other devices though a network. The hard disk drive 2040 stores the programs and data to be used by the CPU 2000 in the computer 1900. The CD-ROM drive 2060 reads a program or data out of a CD-ROM 2095 and provides the program or the data to the hard disk drive 2040 through the RAM 2020.

Meanwhile, relatively low-speed input/output devices including the ROM 2010, the flexible disk drive 2050, and the input/output chip 2070 are connected to the input/output controller 2084. The ROM 2010 stores a boot program to be executed by the computer 1900 at startup, a program depending on the hardware of the computer 1900, and the like. The flexible disk drive 2050 reads a program or data out of a flexible disk 2090 and provides the program or the data to the hard disk drive 2040 through the RAM 2020. The input/output chip 2070 connects various input/output devices through the flexible disk drive 2050, a parallel port, a serial port, a keyboard port, and a mouse port, for example.

The program to be provided to the hard disk drive 2040 through the RAM 2020 by the user is stored in a recording medium such as the flexible disk 2090, the CD-ROM 2095, or an IC card. The program is read out of the recording medium and installed in the hard disk drive 2040 in the computer 1900 through the RAM 2020, and is executed by the CPU 2000.

The program, which is installed in the computer 1900 and configured to cause the computer 1900 to function as the encrypting device 100 illustrated in FIG. 3, includes a node associating information generating module, a node extracting module, a higher-level node encryption key generating module, a lower-level node encryption key generating module, a message encrypting module, a public key calculating module, and a publicizing module. The program or each of the modules directs the CPU 2000 and the like to cause the computer 1900 to function as the node associating information generating unit 300, the node extracting unit 310, the higher-level node encryption key generating unit 320, the lower-level node encryption key generating unit 330, the message encrypting unit 340, the public key calculating unit 350, and the publicizing unit 360, respectively.

The program, which is installed in the computer 1900 and configured to cause the computer 1900 to function as the decrypting device 110 illustrated in FIG. 5, includes a node associating information acquiring module, a terminal node specifying module, a higher-level node decryption key managing module for managing the higher-level node decryption key storing unit 520, the higher-level node decryption key acquiring module, a device decryption key managing module for managing the low-node decryption key generating unit 550, a lower-level node decryption key generating module, and a message decrypting module. The program each of the modules directs the CPU 2000 and the like to cause the computer 1900 to function as the node associating information acquiring unit 500, the terminal node specifying unit 510, the higher-level node decryption key storing unit 520, the higher-level node decryption key acquiring unit 530, the device decryption key storing unit 540, the lower-level node decryption key generating unit 550, and the message decrypting unit 560, respectively.

The program, which is installed in the computer 1900 and configured to cause the computer 1900 to function as the encrypting device 100 illustrated in FIG. 7, includes a tree structure selecting module, a tree structure managing module for managing the tree structure storing unit 710, a node extracting module, a node encryption key generating module, and a message encrypting module. The program or each of the modules directs the CPU 2000 and the like to cause the computer 1900 to function as the tree structure selecting unit 700, the tree structure storing unit 710, the node extracting unit 310, the node encryption key generating unit 720, and the message encrypting unit 340, respectively.

The program, which is installed in the computer 1900 and configured to cause the computer 1900 to function as the decrypting device 110 illustrated in FIG. 9, includes a tree structure selection information acquiring module, a node specifying module, a node decryption key managing module for managing the node decryption key storing unit 920, a node decryption key acquiring module, and a message decrypting module. The program or each of the modules directs the CPU 2000 and the like to cause the computer 1900 to function as the tree structure selection information acquiring unit 900, the node specifying unit 910, the node decryption key storing unit 920, the node decryption key acquiring unit 930, and the message decrypting unit 560, respectively.

The programs or modules described above may be stored in an external storage medium as like program products. In addition to the flexible disk 2090 and the CD-ROM 2095, it is possible to use an optical recording medium such as a DVD or a CD, a magneto-optical recording medium such as an MO, a tape medium, and a semiconductor memory such as an IC card, and the like, as the storage medium. Alternatively, it is possible to use a storage device such as a hard disk or a RAM installed in a server system connected to an exclusive communication network or the Internet as the recording medium, and thereby to provide the program to the computer 1900 through the network.

Although the present invention has been described by use of the advantageous embodiment, it is to be noted that the technical scope of the present invention shall not be limited by the above-described embodiments. It is obvious to those skilled in the art that various modifications and improvements are applicable to the above-described embodiment. It is apparent from the appended claims that such modified or improved aspects can be also encompassed by the technical scope of the present invention.

The present invention can be realized in hardware, software, or a combination of hardware and software. A visualization tool according to the present invention can be realized in a centralized fashion in one computer system, or in a distributed fashion where different elements are spread across several interconnected computer systems. Any kind of computer system—or other apparatus adapted for carrying out the methods and/or functions described herein—is suitable. A typical combination of hardware and software could be a general purpose computer system with a computer program that, when being loaded and executed, controls the computer system such that it carries out the methods described herein. The present invention can also be embedded in a computer program product, which comprises all the features enabling the implementation of the methods described herein, and which—when loaded in a computer system—is able to carry out these methods.

Computer program means or computer program in the present context include any expression, in any language, code or notation, of a set of instructions intended to cause a system having an information processing capability to perform a particular function either directly or after conversion to another language, code or notation, and/or reproduction in a different material form.

Thus the invention includes an article of manufacture which comprises a computer usable medium having computer readable program code means embodied therein for causing a function described above. The computer readable program code means in the article of manufacture comprises computer readable program code means for causing a computer to effect the steps of a method of this invention. Similarly, the present invention may be implemented as a computer program product comprising a computer usable medium having computer readable program code means embodied therein for causing a function described above. The computer readable program code means in the computer program product comprising computer readable program code means for causing a computer to effect one or more functions of this invention. Furthermore, the present invention may be implemented as a program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for causing one or more functions of this invention.

It is noted that the foregoing has outlined some of the more pertinent objects and embodiments of the present invention. This invention may be used for many applications. Thus, although the description is made for particular arrangements and methods, the intent and concept of the invention is suitable and applicable to other arrangements and applications. It will be clear to those skilled in the art that modifications to the disclosed embodiments can be effected without departing from the spirit and scope of the invention. The described embodiments ought to be construed to be merely illustrative of some of the more prominent features and applications of the invention. Other beneficial results can be realized by applying the disclosed invention in a different manner or modifying the invention in ways known to those familiar with the art. 

1. An encrypting device for encrypting a message, comprising: a node associating information generating unit for generating node associating information for associating each of a plurality of first terminal nodes in a first tree structure connecting a plurality of nodes with each of a plurality of decrypting devices in relation to a group of said decrypting devices enabled to decrypt the encrypted message; a node extracting unit for extracting a first decryption enabled node, in which said decryption devices enabled to decrypt the encrypted message are associated with the descendant first terminal nodes and any of the decrypting devices with the decrypting of the encrypted message disabled is not associated with any of the descendant first terminal nodes, in terms of the first tree structure with which the plurality of decrypting devices are associated by the node associating information; and a message encrypting unit for encrypting the message by use of a first node encryption key associated with the first decryption enabled node.
 2. The encrypting device according to claim 1, wherein a public key and a secret key are predefined in relation to each of the decrypting devices, and the encrypting device further comprises a node encryption key generating unit for generating the first node encryption key based on the product of the secret keys corresponding to the respective decrypting devices not associated with respective descendant first terminal nodes of the first decryption enabled node among the plurality of decrypting devices.
 3. The encrypting device according to claim 2, wherein each of the decrypting devices is configured to store a device encryption key determined based on the product of the secret keys corresponding to the decrypting devices, other than the relevant decrypting device, among the plurality of decrypting devices, each of the decrypting devices is configured to generate the first node decryption key based on the product of the secret keys corresponding to the decrypting devices not belonging to the group of decrypting devices enabled to decrypt the encrypted message, based on the product of the public keys corresponding to the respective decrypting devices, other than the relevant decrypting device, corresponding to the respective descendant first terminal nodes of the first decryption enabled node and on the device decryption key of the relevant decrypting device when any of nodes ranging from the first terminal node associated with the relevant decrypting device to the root node of the first tree structure is the first decryption enabled node, and the encrypting device further comprises: a public key calculating unit for calculating the product of the public keys corresponding to the respective decrypting devices, other than the relevant decrypting device, corresponding to the respective descendant first terminal nodes of the first decryption enabled node; and a publicizing unit for publicizing the product of the public keys to the plurality of decrypting devices.
 4. The encrypting device according to claim 1, wherein the node extracting unit extracts a set of said first decryption enabled nodes out of the sets of first decryption enabled nodes in which all the decrypting devices enabled to decrypt the encrypted message are associated with descendant first terminal nodes of any of the first decryption enabled nodes to minimize the number of first decryption enabled nodes, the node associating information generating unit generates the node associating information to minimize the number of the first decryption enabled nodes to be extracted by the node extracting unit, and the message encrypting unit outputs a plurality of said encrypted messages by encrypting the message while using the respective first node encryption keys corresponding to the respective first decryption enabled nodes belonging to the extracted set of first decryption enabled nodes.
 5. The encrypting device according to claim 4, wherein, in the case of outputting a first of the encrypted message and subsequently outputting a second of the encrypted message having a set of said decrypting devices enabled to decrypt encrypted messages different from the set in the first encrypted message, the node associating information generating unit generates the node associating information associating the decrypting device enabled to decrypt the first encrypted message and enabled to decrypt the second encrypted message with the first terminal node identical to the first terminal node associated when encrypting the first encrypted message.
 6. The encrypting device according to claim 5, wherein, in the case of outputting a first of the encrypted message and subsequently outputting a second of the encrypted message having a set of said decrypting devices enabled to decrypt encrypted messages different from the set in the first encrypted message, the node extracting unit further extracts the first decryption enabled node in which the decrypting devices enabled to decrypt the second encrypted message are associated with the descendant first terminal nodes and the decrypting device with the decrypting of the second encrypted message disabled is not associated with any of the descendant first terminal nodes, and the node associating information generating unit further generates the node associating information to minimize the number of said first decryption enabled nodes to be extracted by the node extracting unit in relation to the second encrypted message.
 7. A decrypting device for decrypting an encrypted message encrypted by the encrypting device of claim 1, said decrypting device comprising: a node associating information acquiring unit, said decrypting device being a relevant device from a group of decrypting devices enabled to decrypt the encrypted message, said node associating information acquiring unit to acquire node associating information generated in relation to the group of decrypting devices enabled to decrypt the encrypted message, a terminal node specifying unit for specifying the first terminal node, which is associated with the relevant decrypting device, based on the node associating information; and a message decrypting unit for decrypting the encrypted message by use of a first node decryption key corresponding to the first decryption enabled node on condition that any of the nodes ranging from the first terminal node associated with the relevant decrypting device to the root node of the first tree structure is the first decryption enabled node.
 8. The decrypting device according to claim 7, where in a public key and a secret key are predefined in relation to each of the decrypting devices, the encrypting device is configured to encrypt the message by use of the first node encryption key based on a product of the secret keys corresponding to the respective decrypting devices not associated with the respective descendant first terminal nodes of the first decryption enabled node among the plurality of decrypting devices, and each decrypting device further comprising: a device decryption key storing unit for storing a device decryption key determined based on the product of the secret keys of the decrypting devices other than the relevant decrypting device among the plurality of decrypting devices; and a node decryption key generating unit for generating the first node decryption key based on the product of the secret keys corresponding to the decrypting devices not belonging to the group of said decrypting devices enabled to decrypt the encrypted massage, based on the public keys corresponding to the respective decrypting devices other than the relevant decrypting device corresponding to the respective descendant first terminal nodes of the first decryption enabled node and on the device decryption key of the relevant decrypting device, on condition that any of the nodes ranging from the first terminal node associated with the relevant decrypting device to the root node of the first tree structure is the first decryption enabled node.
 9. The decrypting device according to claim 8, wherein the public key and the secret key corresponding to each of the decrypting devices is a set of a public key and a secret key in the Rivest-Shamir-Adleman encryption system, the encrypting device is configured to encrypt the message by use of the node encryption key based on a value obtained by raising a predetermined number by the product of the secret keys corresponding to the respective decrypting devices associated with the descendant first terminal nodes of the first decryption enabled node, the device decryption key storing unit stores the device decryption key determined based on a value obtained by raising the predetermined value by the product of the secret keys corresponding to the decrypting devices other than the relevant decrypting device, and the node decryption key generating unit generates the node decryption key having the identical value to the first node encryption key based on a value obtained by raising the device decryption key of the relevant decrypting device by the product of the public keys of the respective decrypting devices, other than the relevant decrypting device, corresponding to the respective descendant first terminal nodes of the first decryption enabled node.
 10. The decrypting device according to claim 7, wherein the encrypting device is configured to store a second tree structure connecting respective root nodes of a plurality of said first tree structures as a plurality of second terminal nodes, on condition that said decrypting devices corresponding to all the first terminal nodes connected to at least one of the first tree structures are enabled to decrypt the encrypted message, the encrypting device is configured to extract a second decryption enabled node, in which the root node of the relevant first tree structure is connected as a descendant second terminal node and in which the root node of the first tree structure having the decrypting device disabled to decrypt the encrypted message associated with the first terminal node thereof is not connected as the descendant second terminal node, the encrypting device is configured to encrypt the message by use of any of the first node decryption key associated with the first decryption enabled node and a second node decryption key associated with the second decryption enabled node, and in the case where the encrypted message is encrypted by use of the second node encryption key, the message decrypting unit decrypts the encrypted message by use of a second node decryption key corresponding to the second decryption enabled node on condition that any of nodes ranging from the second terminal node corresponding to the root node of the first tree structure where the relevant decrypting device is associated with the first terminal node to the root node of the second tree structure is the second decryption enabled node.
 11. The decrypting device according to claim 10, further comprising: a node decryption key storing unit for storing the respective second node decryption keys corresponding to the respective nodes ranging from the second terminal node corresponding to the root node of the first tree structure where the relevant decrypting device is associated with the first terminal node to the root node of the second tree structure.
 12. An encrypting device for encrypting a message to be encrypted, the encrypting device comprises a message encrypting unit, wherein a public key and a secret key are predefined in relation to each of a plurality of decrypting devices for decrypting an encrypted message, said message encrypting unit to encrypt the message to be encrypted by use of a group encryption key based on the product of the secret keys corresponding to the respective decrypting devices not belonging to a group of said decrypting devices enabled to decrypt the encrypted message among the plurality of decrypting devices.
 13. A decrypting device for decrypting an encrypted message encrypted by the encrypting device of claim 12, where in a public key and a secret key are predefined in relation to each of a plurality of said decrypting devices, each decrypting device comprising: a device decryption key storing unit for storing a device decryption key determined based on the product of the secret keys of the decrypting devices, other than the relevant decrypting device, among the plurality of decrypting devices; a group decryption key generating unit for generating a group decryption key for the encrypted message based on the product of the secret keys corresponding to the decrypting devices not belonging to a group of said decrypting devices enabled to decrypt the encrypted massage, the group decryption key being generated based on the public keys corresponding to the respective decrypting devices belonging to the group of said decrypting devices enabled to decrypt the encrypted message and on the device decryption key of the relevant decrypting device; and a message decrypting unit for decrypting the encrypted message by use of the group decryption key.
 14. An encrypting device for encrypting a message, comprising: a tree structure storing unit for storing a plurality of types of tree structures configured to apply each of a plurality of decrypting devices as a terminal node and to connect a plurality of nodes; a tree structure selecting unit for selecting any of the tree structures based a set of said decrypting devices enabled to decrypt the encrypted message; a node extracting unit for extracting a set of decryption enabled nodes not containing the decrypting device with the decrypting of the encrypted message disabled in a descendant terminal node thereof and containing the decrypting device enabled to decrypt the encrypted message in a descendant terminal node of any of the nodes, in terms of the selected tree structure; and a message encrypting unit for outputting a plurality of encrypted messages by encrypting each message by use of respective node encryption keys associated with respective decryption enabled nodes belonging to the selected set of decryption enabled nodes.
 15. The encrypting device according to claim 14, wherein the tree structure selecting unit selects a set of nodes out of the selected sets of said decryption enabled nodes in terms of each of the tree structures to minimize the number of said decryption enabled nodes.
 16. The encrypting device according to claim 14, wherein the tree structure storing unit stores the plurality of tree structures in which sets of said decrypting devices having more similarity of any of said types and characteristics are associated respectively with descendant terminal nodes of decryption enabled nodes closer to terminal nodes, based on any of mutually different types of the decrypting devices and various characteristics of users of the decrypting devices, and the tree structure selecting unit selects any of the tree structures based on any of the types of the decrypting devices enabled to decrypt the encrypted message and the characteristics of users.
 17. A decrypting device for decrypting an encrypted message encrypted by the encrypting device of claim 14, said decrypting device being a relevant device in a group of decrypting devices enabled to decrypt the encrypted message, the decrypting device comprising: a node specifying unit for specifying a selected decryption enabled node out of nodes located on a path ranging from a terminal node corresponding to the relevant decryption device to the root node in the tree structure as a pool for selecting the set of decryption enabled nodes, a node decryption key acquiring unit for acquiring a node decryption key associated with the decryption enabled node specified by the node specifying unit in the tree structure as the pool for selecting the set of decryption enabled nodes; and a message decrypting unit for decrypting the encrypted message encrypted by the node encryption key associated with the decryption enabled node specified by the node specifying unit by use of the acquired node decryption key.
 18. The decrypting device according to claim 17, wherein the encrypting device is configured to extract a set of a first decryption enabled node of a first tree structure and of a second decryption enabled node of a second tree structure, the set containing the decrypting device enabled to decrypt the encrypted message in a descendant terminal node in common but not containing the decrypting device with the decrypting of the encrypted message disabled in the descendant terminal nodes of at least one of the decryption enabled nodes, the encrypting device is configured to encrypt the message by use of a first node encryption key associated with the first decryption enabled node and a second node encryption key associated with the second decryption enabled node, the node specifying unit specifies the first and second decryption enabled nodes, the node decryption key acquiring unit acquires a first node decryption key associated with the first decryption enabled node and a second node decryption key associated with the second decryption enabled node, and the message decrypting unit decrypts the encrypted message by use of the acquired first and second node decryption keys.
 19. An encrypting method for an encrypting device configured to encrypt a message, comprising: a node associating information generating step of generating node associating information for associating each of a plurality of terminal nodes in a first tree structure connecting a plurality of nodes with each of a plurality of decrypting devices in relation to a group of said decrypting devices enabled to decrypt the encrypted message; a node extracting step of extracting a first decryption enabled node, in which said decryption devices enabled to decrypt the encrypted message are associated with the descendant first terminal nodes and the decrypting device with the decrypting of the encrypted message disabled is not associated with any of the descendant first terminal nodes, in terms of the first tree structure with which the plurality of decrypting devices are associated by the node associating information; and a message encrypting step of encrypting the message by use of a first node encryption key associated with the first decryption enabled node.
 20. A decrypting method for a decrypting device configured to decrypt an encrypted message encrypted by the encrypting method of claim 19, the decrypting method comprising: a node associating information acquiring step of acquiring the node associating information generated in relation to the group of decrypting devices enabled to decrypt the encrypted message; a terminal node specifying step of specifying the first terminal node, which is associated with the relevant decrypting device, based on the node associating information; and a message decrypting step of decrypting the encrypted message by use of a first node decryption key corresponding to the first decryption enabled node on condition that any of nodes ranging from the first terminal node associated with the relevant decrypting device to the root node of the first tree structure is the first decryption enabled node.
 21. An encrypting method for an encrypting device configured to encrypt a message, wherein a public key and a secret key are predefined in relation to each of a plurality of decrypting devices for decrypting an encrypted message, the encrypting method comprising a message encrypting step of encrypting the message by use of a group encryption key based on the product of the secret keys corresponding the respective decrypting devices not belonging to a group of said decrypting devices enabled to decrypt the encrypted message among the plurality of decrypting devices.
 22. A decrypting method for a decrypting device configured to decrypt an encrypted message encrypted by the encrypting method of claim 21, the decrypting method comprising: a device decryption key storing step of storing a device decryption key determined based on the product of the secret keys of the decrypting devices other than the relevant decrypting device among the plurality of decrypting devices; a group decryption key generating step of generating a group decryption key for the encrypted message based on the product of the secret keys corresponding to the decrypting devices not belonging to the group of said decrypting devices enabled to decrypt the encrypted massage, the group decryption key being generated based on the public keys corresponding to the respective decrypting devices belonging to the group of said decrypting devices enabled to decrypt the encrypted message and on the device decryption key of the relative decrypting device; and a message decrypting step of decrypting the encrypted message by use of the group decryption key.
 23. An encrypting method for an encrypting device configured to encrypt a message, comprising: a tree structure storing step of storing a plurality of types of tree structures configured to apply each of a plurality of decrypting devices as a terminal node and to connect a plurality of nodes; a tree structure selecting step of selecting any of the tree structures based on a set of said decrypting devices enabled to decrypt the encrypted message; a node extracting step of extracting a set of decryption enabled nodes not containing the decrypting device with the decrypting of the encrypted message disabled in a descendant terminal node thereof and containing the decrypting device enabled to decrypt the encrypted message in a descendant terminal node of any of the nodes, in terms of the selected tree structure; and a message encrypting step of outputting a plurality of said encrypted messages by encrypting the message by use of respective node encryption keys associated with the respective decryption enabled nodes belonging to the selected set of decryption enabled nodes.
 24. A decrypting method for a decrypting device configured to decrypt an encrypted message encrypted by the encrypting method of claim 23, the decrypting method comprising: a node specifying step of specifying che selected decryption enabled node out of nodes located on a path ranging from the terminal node corresponding to the relevant decryption device to the root node in the tree structure as a pool for selecting the set of decryption enabled nodes; a node decryption key acquiring step of acquiring a node decryption key associated with the decryption enabled node specified by the node specifying step in the tree structure as the pool for selecting the set of decryption enabled nodes; and a message decrypting step of decrypting the encrypted message encrypted by the node encryption key associated with the decryption enabled node specified by the node specifying step by use of the acquired node decryption key.
 25. A computer program product comprising a computer usable medium having computer readable program code means embodied therein for causing encryption of a message, the computer readable program code means in said computer program product comprising computer readable program code means for causing a computer to effect the functions of claim
 1. 26. A computer program product comprising a computer usable medium having computer readable program code means embodied therein for causing encryption of a message, the computer readable program code means in said computer program product comprising computer readable program code means for causing a computer to effect the functions of claim
 12. 27. A computer program product comprising a computer usable medium having computer readable program code means embodied therein for causing encryption of a message, the computer readable program code means in said computer program product comprising computer readable program code means for causing a computer to effect the functions of claim
 14. 28. A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for encrypting a message, said method steps comprising the steps of claim
 19. 29. A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for encrypting a message, said method steps comprising the steps of claim
 21. 30. A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for encrypting a message, said method steps comprising the steps of claim
 23. 31. A computer program product comprising a computer usable medium having computer readable program code means embodied therein for causing decryption of a message, the computer readable program code means in said computer program product comprising computer readable program code means for causing a computer to effect the functions of claim
 7. 32. A computer program product comprising a computer usable medium having computer readable program code means embodied therein for causing decryption of a message, the computer readable program code means in said computer program product comprising computer readable program code means for causing a computer to effect the functions of claim
 13. 33. A computer program product comprising a computer usable medium having computer readable program code means embodied therein for causing decryption of a message, the computer readable program code means in said computer program product comprising computer readable program code means for causing a computer to effect the functions of claim
 17. 34. A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for decrypting a message, said method steps comprising the steps of claim
 20. 35. A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for encrypting a message, said method steps comprising the steps of claim
 22. 36. A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for encrypting a message, said method steps comprising the steps of claim
 24. 